package com.bj58.aop.annotation.configuration;

import com.bj58.aop.annotation.NotAdult;
import com.bj58.aop.interceptor.NoAdultInterceptor;
import com.bj58.di.service.IBookService;
import com.bj58.di.service.impl.ArtBookService;
import com.google.inject.AbstractModule;
import com.google.inject.matcher.Matchers;
import com.google.inject.name.Names;

public class NotAdultConfiguration extends AbstractModule {
	protected void configure() {
		bindInterceptor(Matchers.any(), Matchers.annotatedWith(NotAdult.class), new NoAdultInterceptor());
		// bind(IBookService.class).to(ArtBookService.class);
	}
}
